<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditCorrDocAreaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditCorrDocAreaLabel_corrDocAreaPK_idCorrDocArea}" for="corrDocAreaPK_idCorrDocArea" />
                    <h:inputText id="corrDocAreaPK_idCorrDocArea" value="#{corrDocAreaController.selected.corrDocAreaPK.idCorrDocArea}" title="#{bundle.EditCorrDocAreaTitle_corrDocAreaPK_idCorrDocArea}" required="true" requiredMessage="#{bundle.EditCorrDocAreaRequiredMessage_corrDocAreaPK_idCorrDocArea}"/>
                    <h:outputLabel value="#{bundle.EditCorrDocAreaLabel_corrDocAreaPK_fkTipDoc}" for="corrDocAreaPK_fkTipDoc" />
                    <h:inputText id="corrDocAreaPK_fkTipDoc" value="#{corrDocAreaController.selected.corrDocAreaPK.fkTipDoc}" title="#{bundle.EditCorrDocAreaTitle_corrDocAreaPK_fkTipDoc}" required="true" requiredMessage="#{bundle.EditCorrDocAreaRequiredMessage_corrDocAreaPK_fkTipDoc}"/>
                    <h:outputLabel value="#{bundle.EditCorrDocAreaLabel_asunto}" for="asunto" />
                    <h:inputText id="asunto" value="#{corrDocAreaController.selected.asunto}" title="#{bundle.EditCorrDocAreaTitle_asunto}" />
                    <h:outputLabel value="#{bundle.EditCorrDocAreaLabel_fecha}" for="fecha" />
                    <h:inputText id="fecha" value="#{corrDocAreaController.selected.fecha}" title="#{bundle.EditCorrDocAreaTitle_fecha}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditCorrDocAreaLabel_estado}" for="estado" />
                    <h:selectOneMenu id="estado" value="#{corrDocAreaController.selected.estado}" title="#{bundle.EditCorrDocAreaTitle_estado}" required="true" requiredMessage="#{bundle.EditCorrDocAreaRequiredMessage_estado}">
                        <f:selectItems value="#{estadoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditCorrDocAreaLabel_area}" for="area" />
                    <h:selectOneMenu id="area" value="#{corrDocAreaController.selected.area}" title="#{bundle.EditCorrDocAreaTitle_area}" required="true" requiredMessage="#{bundle.EditCorrDocAreaRequiredMessage_area}">
                        <f:selectItems value="#{areaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{corrDocAreaController.update}" value="#{bundle.EditCorrDocAreaSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditCorrDocAreaViewLink}"/>
                <br />
                <h:commandLink action="#{corrDocAreaController.prepareList}" value="#{bundle.EditCorrDocAreaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditCorrDocAreaIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
